using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;

namespace Demo.Net.Model
{
    public class Feedback//反馈信息表
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }//id
        // [ForeignKey(nameof(Owner))]
        public int OwnerId { get; set; }//业主ID
        // public Owner Owner { get; set; }
        [Required]
        public string? Title { get; set; }//反馈标题
        [Required]
        public string? Description { get; set; }//反馈描述
        public string? Photo { get; set; }//图片
         //软删除
        // public Boolean IsDeleted { get; set; } = false;
        //导航属性
        public Owner? Owner { get; set; }
    }
}